/*
 * @Description:子应用公用状态
 * @Date: 2023-02-16 16:53:48
 */
import { ref } from "vue";
import { defineStore } from "pinia";

export const useSharedStore = defineStore("user", () => {
  const user = ref({ name: "高启强", age: 60 });
  const changeName = () => {
    user.value = { name: "高启盛" };
  };

  return { user, changeName };
});
